package com.glodon.fansi.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.glodon.fansi.db.dao.WbLoginMapper;
import com.glodon.fansi.db.model.WbLogin;

@Service
public class WbLoginService {
	@Autowired
	private WbLoginMapper wbLoginMapper;
	public WbLogin selectByOpenId(String openId){
		return wbLoginMapper.selectByOpenId(openId);
	}
	public int insert(WbLogin record){
		return wbLoginMapper.insertSelective(record);
	}
	public int update(WbLogin record){
		return wbLoginMapper.updateByPrimaryKeySelective(record);
	}
	public WbLogin selectByid(Integer id){
		return wbLoginMapper.selectByPrimaryKey(id);
	}
	
	public WbLogin selectByUserId(String userid) {
		return wbLoginMapper.selectByUserId(userid);
	}
}
